package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.User;

import java.util.Map;

public interface UserService {
    public User findByUsername(String username);

    void add(Integer[] roles, User user);

    PageResult findPage(QueryPageBean queryPageBean);

    void edit(Integer[] roles, User user);

    Map<String, Object> fingById(Integer id);

    void delete(Integer id);

}
